package 复习;

public class Client {
    public static void main(String[] args) {
        AbstractRole roleA=new RoleA(12);
        roleA=new DetractorA(2,roleA);
        roleA=new DetractorA(2,roleA);
        roleA=new DetractorA(20,roleA);
        System.out.println(roleA.cost());
    }
}
